import { GraphConfigData } from "@logicflow/core"
import MyParse from "../src/parse/MyParse"
import { GraphData } from './type';

const parse = (data: GraphData) => {
    return new MyParse(data as unknown as GraphConfigData).parse().getElString();
}

export function reSpace(str: string) {
    return str.replace(/\s+/g, '')
}

export default parse;